﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Errors_Errors : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            var lastError = Application["lasterror"];

            if (lastError != null)
            {
                litError.Text = lastError.ToString();
            }
            else
            {
                litError.Text = "Unspecified Error";
            }
        }
    }
}